package org.itboys.store.dto;

import java.text.DecimalFormat;

/**
 * 商品DTO
 * @author 
 *
 */
public class ProductDTO {

	private long id;
	private String name;
	private String image;//主图
	private double marketPrice;
	private double price;//实际交易的现价
	private int status;//状态 1:待平台审核  2:上架 3:下架 4:废弃 5:永久删除 其他状态自己定

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public double getMarketPrice() {
		DecimalFormat df   = new DecimalFormat("######0.00");
		return Double.valueOf(df.format(marketPrice));
	}

	public void setMarketPrice(double marketPrice) {
		this.marketPrice = marketPrice;
	}

	public double getPrice() {
		DecimalFormat df   = new DecimalFormat("######0.00");
		return Double.valueOf(df.format(price));
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
}
